<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="comwarningCss" jsFile="comwarningJs" current="warningConditions">
	<!-- BEGIN CONTENT BODY -->
    <div class="page-content">
    	<!-- BEGIN PAGE HEAD-->
         <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>创建预警条件
                    <small>创建新的预警条件</small>
                </h1>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <a href="${context}/early/warning/viewIndex">预警管理</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">添加预警</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="portlet light bordered">
                <div class="portlet-body form edit-form">
                    <form action="#" class="horizontal-form createform" id="setWarning" >
                            <input type="hidden" id="id"  name="id" value="${vo.id}">  
                            <div class="form-body">
                            	<div class="alert alert-danger display-hide">
	                                <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
	                            </div>
	                            <div class="alert alert-success display-hide">
	                                <button class="close" data-close="alert"></button> 表单验证通过! 
	                            </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">所属公司</label>
                                                <div class="input-group-content">
                                                    <select class="form-control input-inline" placeholder="★请输入所属公司" name="companyId" id="comID" >
                                                        <option value="${vo.accountName}">${vo.accountName}</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">账户名称</label>
                                                <div class="input-group-content">
                                                	<input type="text" class="form-control" placeholder="账户名称" name="accountName" value="${vo.accountName}" readonly>
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                    
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">账户号码</label>
                                                <div class="input-group-content">
                                                    <input type="text" class="form-control" placeholder="账户号码" name="accountNo" value="${vo.accountNo}" readonly>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>

                                <h4 class="form-section">预警条件</h4>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">一级预警条件</label>
                                                <div class="input-group-content">
                                                    <input type="text" class="form-control" placeholder="低于特地金额时发出一级预警" name="amountWarning" value="${vo.oneLevel}" >
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">特级预警条件</label>
                                                <div class="input-group-content">
                                                    <input type="text" class="form-control" placeholder="低于特地金额时发出特级预警" name="ergentAmountWarning" value="${vo.specialLevel}" >
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                           	</div>
                            <div class="form-actions top">
                                <div class="row">
                                    <div class="col-md-offset-5 col-md-7">
                                        <button type="submit" id="#conditionSave" class="btn green">保存</button>
                                        <button type="button" class="btn default" id="indClose"><a href="${context}/early/warning/conditions">返回</a></button>
                                    </div>
                                </div>
                            </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- END CONTENT BODY -->

</@page.mainTemplate>